package com.zhongnan.demo5.runnable;

public class Demo {
    public static void main(String[] args) {
        MyRunnable mr1 = new MyRunnable();
        Thread th1 = new Thread(mr1);
        th1.start();
        th1.setPriority(4);
        MyRunnable mr2 = new MyRunnable();
        Thread th2 = new Thread(mr2);
        th2.setPriority(6);
        th2.start();
    }
}
